﻿// See https://aka.ms/new-console-template for more information

//普通元组，结果只能用item1，item2表示,可读性叼差
var result1 = methond1();
var a1 = result1.Item1;
var b1 = result1.Item2;

//具名元组，可读性显著提高
var result2 = methond2();
var a2 = result2.result1;
var b2 = result2.result2;

Tuple<string, int> methond1()
{
    return new Tuple<string, int>("1", 2);
}

(string result1, int result2) methond2()
{
    return ("1", 2);
}